<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<head>
<base href="<%=basePath%>"/>
<title>soda教育</title>
<link href="qiantai/css/style.css" type="text/css" rel="stylesheet" />
<link href="qiantai/css/single.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="qiantai/js/banner1.js"></script>
<script type="text/javascript" src="qiantai/js/banner3.js"></script>
<script type="text/javascript">
/**
 * 充值方法
 */
function chongqian() {
	var money = document.getElementById("money").value;	
	var reg=/^\d+$/g;
	if(!reg.test(money)){
		alert("钱数只能是正整数，请重新输入");
	}else{
	var a = "ajaxchong";	
	location.href = "<%=request.getContextPath()%>/QianLoginServlet?method=" + a + "&money=" + money;
}
}


</script>



</head>

<body>
<iframe style="width:100%;height:236px" scrolling="no" frameborder="0" src="qiantai/header.jsp"></iframe>

<div class="content">
   
   <div class="clear"></div>
   <div class="buyDiv">
   
   	<div class="buyHeader">
   		<h1>充值</h1>
   		
   		<div class="innerDiv" onclick="history.back();">返 回</div>
        <div class="innerDiv" onclick="chongqian()">充 值</div>
   	</div>
   
   	<div class="loginBody">
    	<fieldset class="registField">
        	<legend style="color:#DE3237;" align="left">充 值</legend>
               <form>
               <table class="registTable">
               <tr>
               	<td align="right" style="width:30%;">用户</td>
                <td></td>
                <td align="left">${sessionScope.student.stuName }</td>
               </tr>
               <tr>
               	<td align="right">余额</td>
                <td></td>
                <td align="left">${sessionScope.student.stuMoney }元</td>
               </tr>
               <tr>
               	<td align="right">充值金额</td>
                <td></td>
                <td align="left"><input type="text" size="5" name="money" id="money" />&nbsp;元</td>
               </tr>
               </table>
               </form>
         </fieldset>
    </div>
   </div>
   <div class="clear"></div><!--清除浮动-->
</div><!--content end-->



<div class="footer">
   <ul>
     
       
       <li class="li_left">地址：北京海淀区成府路**号</li>
       <li class="li_right">联系电话：010-82365636</li>
   </ul>
</div><!--footer end-->
<div style="display:none"><script src='http://v7.cnzz.com/stat.php?id=155540&web_id=155540' language='JavaScript' charset='gb2312'></script></div>
</body>
</html>